Changed CVS reference to SVN.
authorKevin Cozens <kcozens@cvs.gnome.org>
Sat, 10 Feb 2007 04:16:17 +0000 (04:16 +0000)
committerKevin Cozens <kcozens@src.gnome.org>
Sat, 10 Feb 2007 04:16:17 +0000 (04:16 +0000)
2007-02-09  Kevin Cozens  <kcozens@cvs.gnome.org>

* autogen.sh: Changed CVS reference to SVN.

* configure.ac: Set BABL_UNSTABLE to 1 for odd micro numbers
when major and minor are both 0.

* babl.pc.in
* babl/Makefile.am
* tests/Makefile.am: Use version number in library name.

svn path=/trunk/; revision=214

ChangeLog
autogen.sh
babl.pc.in
babl/Makefile.am
configure.ac
tests/Makefile.am

index 32604d0653d5da4569eb6990ebf02f07d3052df1..9589f9abdfeac82be75c51381579d070885b194b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2007-02-09  Kevin Cozens  <kcozens@cvs.gnome.org>
+
+       * autogen.sh: Changed CVS reference to SVN.
+
+       * configure.ac: Set BABL_UNSTABLE to 1 for odd micro numbers
+       when major and minor are both 0.
+
+       * babl.pc.in
+       * babl/Makefile.am 
+       * tests/Makefile.am: Use version number in library name.
+
 2007-02-09  Kevin Cozens  <kcozens@cvs.gnome.org>
 
        * babl/Makefile.am
index 0ce5cc9e63878252eee6eb2a2c0d04567a40634c..fcb32dabb415d99790e0fdbcc7960ce687bed198 100755 (executable)
@@ -72,7 +72,7 @@ check_version ()
 
 echo
 echo "I am testing that you have the tools required to build the"
-echo "$PROJECT from CVS. This test is not foolproof,"
+echo "$PROJECT project from SVN. This test is not foolproof"
 echo "so if anything goes wrong, see the file HACKING for more information..."
 echo
 
@@ -215,6 +215,10 @@ $AUTOCONF || exit $?
 
 cd $ORIGDIR
 
+echo
+echo "Running ./configure..."
+echo
+
 $srcdir/configure --enable-maintainer-mode $AUTOGEN_CONFIGURE_ARGS "$@"
 RC=$?
 if test $RC -ne 0; then
index 5752e0438ca2ec6feda680a92ab6892711d0ee84..04b1fa406c407caf41cfdd70f97301c57979488a 100644 (file)
@@ -6,6 +6,6 @@ includedir=@includedir@
 Name: babl
 Description: Dynamic, any to any, pixel format conversion library
 Version: @BABL_REAL_VERSION@
-Libs: -L${libdir} -lbabl @DL_LIB@ @MATH_LIB@
 Cflags: -I${includedir}/@PACKAGE_NAME@-@BABL_API_VERSION@
+Libs: -L${libdir} -l@PACKAGE_NAME@-@BABL_API_VERSION@ @DL_LIB@ @MATH_LIB@
 
index d20caefbf65aaf118ed1ff2f53106a5f7e434cac..53de1d9b33d80b09f22f8f9053e695149d7639ba 100644 (file)
@@ -47,13 +47,12 @@ INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/babl/base
 
 AM_CPPFLAGS = -DPREFIX=\""$(prefix)"\"
 
-lib_LTLIBRARIES= libbabl.la
-libbabl_la_SOURCES= $(h_sources) $(c_sources)
-libbabl_la_LIBADD=\
+lib_LTLIBRARIES= libbabl-@BABL_API_VERSION@.la
+libbabl_@BABL_API_VERSION@_la_SOURCES= $(h_sources) $(c_sources)
+libbabl_@BABL_API_VERSION@_la_LIBADD=\
        base/libbase.la \
        @LTLIBOBJS@
 
-libbabl_la_LDFLAGS= \
-       -version-info $(BABL_LIBRARY_VERSION) \
-       -release $(BABL_RELEASE) \
-       ${no_undefined}
+libbabl_@BABL_API_VERSION@_la_LDFLAGS= \
+       ${no_undefined}                \
+       -version-info $(BABL_LIBRARY_VERSION)
index 228fdeafc829b102eb457eedbe1245142cce2579..6c5237fa6283f112b9deb88bffb3185b5c93b17b 100644 (file)
@@ -1,8 +1,16 @@
+dnl Process this file with autoconf to produce a configure script.
+
 AC_PREREQ(2.54)
 
 # Making releases on the stable branch:
 #   BABL_MICRO_VERSION += 1;
 #   BABL_INTERFACE_AGE += 1;
+#   BABL_BINARY_AGE += 1;
+# if any functions have been added,
+#    set BABL_INTERFACE_AGE to 0.
+# if backwards compatibility has been broken,
+#    set BABL_BINARY_AGE _and_ BABL_INTERFACE_AGE to 0.
+
 
 m4_define([babl_major_version], 0)
 m4_define([babl_minor_version], 0)
@@ -10,6 +18,8 @@ m4_define([babl_micro_version], 13)
 m4_define([babl_real_version],
           [babl_major_version.babl_minor_version.babl_micro_version])
 m4_define([babl_version], [babl_real_version])
+
+dnl Number of releases since we've added interfaces
 m4_define([babl_interface_age], [0])
 m4_define([babl_binary_age],
           [m4_eval(100 * babl_minor_version + babl_micro_version)])
@@ -17,6 +27,13 @@ m4_define([babl_binary_age],
 # This is the X.Y used in -lbabl-X.Y
 m4_define([babl_api_version], [babl_major_version.babl_minor_version])
 
+m4_define([stability_version_number],
+          m4_if(m4_eval(babl_major_version || babl_minor_version), [0],
+                        [babl_micro_version], [babl_minor_version]))
+m4_define([babl_unstable],
+          m4_if(m4_eval(stability_version_number % 2), [1], [yes], [no]))
+m4_define([babl_stable],
+          m4_if(m4_eval(stability_version_number % 2), [0], [yes], [no]))
 
 AC_INIT(babl, babl_major_version.babl_minor_version.babl_micro_version)
 AC_CONFIG_SRCDIR(babl/babl.h)
@@ -41,6 +58,19 @@ AC_SUBST(BABL_API_VERSION)
 BABL_RELEASE=babl_api_version
 AC_SUBST(BABL_RELEASE)
 
+
+dnl The symbol BABL_UNSTABLE is defined above for substitution in
+dnl Makefiles and conditionally defined here as a preprocessor symbol
+dnl and automake conditional.
+BABL_UNSTABLE=babl_unstable 
+if test "x$BABL_UNSTABLE" = "xyes"; then
+  AC_DEFINE(BABL_UNSTABLE, 1,
+            [Define to 1 if this is an unstable version of BABL])
+fi
+AM_CONDITIONAL(BABL_UNSTABLE, test "x$GEGL_UNSTABLE" = "xyes")
+AC_SUBST(BABL_UNSTABLE)
+
+
 # libtool versioning
 m4_define([lt_current], [m4_eval(100 * babl_minor_version + babl_micro_version - babl_interface_age)])
 m4_define([lt_revision], [babl_interface_age])
@@ -53,8 +83,11 @@ AC_SUBST(BABL_CURRENT_MINUS_AGE)
 PACKAGE_NAME=babl
 AC_SUBST(PACKAGE_NAME)
 
-AM_CONFIG_HEADER(config.h)
+
+dnl ==========================================================================
+
 AM_INIT_AUTOMAKE(no-define)
+AM_CONFIG_HEADER(config.h)
 
 AC_DISABLE_STATIC
 AC_PROG_CC
index 946047b7e07ff8deced0adeea30da6ba4e11155a..e289b9df1e01856aa976071dfe48e5101311a2d6 100644 (file)
@@ -25,7 +25,8 @@ models_SOURCES              = models.c
 
 AM_CFLAGS = -I$(top_srcdir) -I$(top_srcdir)/babl
 
-LDADD = $(top_builddir)/babl/libbabl.la $(DL_LIB) $(MATH_LIB)
+LDADD = $(top_builddir)/babl/libbabl-@BABL_API_VERSION@.la \
+       $(DL_LIB) $(MATH_LIB)
 
 noinst_PROGRAMS =              \
        introspect              \